﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Diagnostics;

namespace DomainModel
{
    [Table(Name = "main.Module")]
    public partial class Module
    {
        #region string Content

        private string _content;
        [DebuggerNonUserCode]
        [Column(Storage = "_content", Name = "Content", DbType = "text", CanBeNull = false)]
        public string Content
        {
            get
            {
                return _content;
            }
            set
            {
                if (value != _content)
                {
                    _content = value;
                }
            }
        }

        #endregion

        #region string HomePage

        private string _homePage;
        [DebuggerNonUserCode]
        [Column(Storage = "_homePage", Name = "HomePage", DbType = "nvarchar(64)", CanBeNull = false)]
        public string HomePage
        {
            get
            {
                return _homePage;
            }
            set
            {
                if (value != _homePage)
                {
                    _homePage = value;
                }
            }
        }

        #endregion

        #region int? ID

        private int? _id;
        [DebuggerNonUserCode]
        [Column(Storage = "_id", Name = "ID", DbType = "INTEGER", IsPrimaryKey = true, IsDbGenerated = true)]
        public int? ID
        {
            get
            {
                return _id;
            }
            set
            {
                if (value != _id)
                {
                    _id = value;
                }
            }
        }

        #endregion

        #region bool IsShow

        private bool _isShow;
        [DebuggerNonUserCode]
        [Column(Storage = "_isShow", Name = "IsShow", DbType = "bit", CanBeNull = false)]
        public bool IsShow
        {
            get
            {
                return _isShow;
            }
            set
            {
                if (value != _isShow)
                {
                    _isShow = value;
                }
            }
        }

        #endregion

        #region string ModuleName

        private string _moduleName;
        [DebuggerNonUserCode]
        [Column(Storage = "_moduleName", Name = "ModuleName", DbType = "nvarchar(64)", CanBeNull = false)]
        public string ModuleName
        {
            get
            {
                return _moduleName;
            }
            set
            {
                if (value != _moduleName)
                {
                    _moduleName = value;
                }
            }
        }

        #endregion

        #region int Rank

        private int _rank;
        [DebuggerNonUserCode]
        [Column(Storage = "_rank", Name = "Rank", DbType = "int", CanBeNull = false)]
        public int Rank
        {
            get
            {
                return _rank;
            }
            set
            {
                if (value != _rank)
                {
                    _rank = value;
                }
            }
        }

        #endregion

        #region int Target

        private int _target;
        [DebuggerNonUserCode]
        [Column(Storage = "_target", Name = "Target", DbType = "int", CanBeNull = false)]
        public int Target
        {
            get
            {
                return _target;
            }
            set
            {
                if (value != _target)
                {
                    _target = value;
                }
            }
        }

        #endregion

    }
}
